using UnityEngine;

namespace MLTimeline.Demo
{
    [System.Serializable]
    public class TransformMoveClip : TweenClip
    {
        public Transform target;
        public Transform startPoint;
        public Transform endPoint;

        public override void Evaluate(int frame, float progress, float frameRate)
        {
            if (target == null) return;

            // 此处可扩展，例如加入缓动曲线计算
            target.position = Vector3.Lerp(startPoint.position, endPoint.position, progress);
        }
    }
}